package com.miyu.system.controller.opensystem;


import com.alibaba.fastjson.JSONObject;
import com.miyu.common.pojo.book.BookRuleSet;
import com.miyu.system.service.openSystem.OpenSysBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 开放系统书
 *
 * @author longm
 * @date 2022/09/13
 */
@RestController
@RequestMapping("sysOpen/book")
public class OpenSysBook {

    @Autowired
    private OpenSysBookService openSysBookService;
    @RequestMapping("queryBookRule")
    public List<BookRuleSet> queryBookRule(@RequestBody JSONObject params){
        return openSysBookService.queryBookRule(params);
    }
}
